home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Business / SalesTax&IncomeReports / Sales Tax / Sales Tax / background_12506.xml < prev    next >
Extensible Markup Language  |  1991-07-15  |  13KB  |  171 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>12506</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_12683.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <false /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_30736.css" />
  11.     <part>
  12.         <id>2</id>
  13.         <type>button</type>
  14.         <visible> <false /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>29</left>
  23.             <top>303</top>
  24.             <right>182</right>
  25.             <bottom>325</bottom>
  26.         </rect>
  27.         <style>roundrect</style>
  28.         <showName> <true /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <true /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>right</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <name>reset quarterly dates</name>
  40.         <script>on mouseUpglobal quartSecs------------------------------------------1ST Quarter--------------------repeatask "Enter the date that starts the 1st quarter of a specific year on line 1."&return&return&"Enter the ending date for the 1st quarter on line 2."&return&return&¬¨"It must be a date (preferably from a leap year) in a form that Hypercard can read. Only hit the return key to enter the dates."with"12/1/91"&return&"2/29/92"if line 1 of it is empty or line 2 of it is empty thendateNotTherenext repeatend ifif line 1 of it is a date and line 2 of it is a date thenconvert line 1 of it to secondsconvert line 2 of it to secondsif line 2 of it - line 1 of it > 8985600 thendateTooLongnext repeatend ifif line 2 of it - line 1 of it < 7257600 thendateTooShortnext repeatend ifelsedateNoGoodnext repeatend ifput line 1 of it into enteredDateput ","&line 2 of it after enteredDateconvert line 1 of it to long dateconvert line 2 of it to long datedelete item 1 of line 1 of itdelete item 1 of line 2 of itanswer "Please check this statement:"&return&return&"The first quarter starts:"&return&line 1 of it&return&return&"...and ends:"&return&line 2 of it with "false" or "true"if it is "true" then exit repeatend repeat------------------------------------------2ND Quarter--------------------repeatask "Enter the date that starts the 2nd quarter on line 1."&return&return&"Enter the ending date for the 2nd quarter on line 2."&return&return&¬¨"Remember to only hit the return key when you are ready to enter the dates."with "3/1/92"&return&"5/31/92"if line 1 of it is empty or line 2 of it is empty thendateNotTherenext repeatend ifif line 1 of it is a date and line 2 of it is a date thenconvert line 1 of it to secondsconvert line 2 of it to secondsif line 2 of it - line 1 of it > 8985600 thendateTooLongnext repeatend ifif line 2 of it - line 1 of it < 7257600 thendateTooShortnext repeatend ifelsedateNoGoodnext repeatend ifput ","&line 1 of it after enteredDateput ","&line 2 of it after enteredDateconvert line 1 of it to long dateconvert line 2 of it to long datedelete item 1 of line 1 of itdelete item 1 of line 2 of itanswer "Please check this statement:"&return&return&"The second quarter starts: "&return&line 1 of it&return&return&"...and ends: "&return&line 2 of it with "false" or "true"if it is true then exit repeatend repeat------------------------------------------3rd Quarter--------------------repeatask "Enter the date that starts the 3rd quarter on line 1."&return&return&"Enter the ending date for the 3rd quarter on line 2."&return&return&¬¨"Remember to only hit the return key when you are ready to enter the dates."with "6/1/92"&return&"8/31/92"if line 1 of it is empty or line 2 of it is empty thendateNotTherenext repeatend ifif line 1 of it is a date and line 2 of it is a date thenconvert line 1 of it to secondsconvert line 2 of it to secondsif line 2 of it - line 1 of it > 8985600 thendateTooLongnext repeatend ifif line 2 of it - line 1 of it < 7257600 thendateTooShortnext repeatend ifelsedateNoGoodnext repeatend ifput ","&line 1 of it after enteredDateput ","&line 2 of it after enteredDateconvert line 1 of it to long dateconvert line 2 of it to long datedelete item 1 of line 1 of itdelete item 1 of line 2 of itanswer "Please check this statement:"&return&return&"The third quarter starts:"&return&line 1 of it&return&return&"...and ends:"&return&line 2 of it with "false" or "true"if it is true then exit repeatend repeat------------------------------------------4th Quarter--------------------repeatask "Enter the date that starts the 4th quarter on line 1."&return&return&"Enter the ending date for the 4th quarter on line 2."&return&return&¬¨"Remember to only hit the return key when you are ready to enter the dates."with "9/1/92"&return&"11/30/92"if line 1 of it is empty or line 2 of it is empty thendateNotTherenext repeatend ifif line 1 of it is a date and line 2 of it is a date thenconvert line 1 of it to secondsconvert line 2 of it to secondsif line 2 of it - line 1 of it > 8985600 thendateTooLongnext repeatend ifif line 2 of it - line 1 of it < 7257600 thendateTooShortnext repeatend ifelsedateNoGoodnext repeatend ifput ","&line 1 of it after enteredDateput ","&line 2 of it after enteredDateconvert line 1 of it to long dateconvert line 2 of it to long datedelete item 1 of line 1 of itdelete item 1 of line 2 of itanswer "Please check this statement:"&return&return&"The fourth quarter starts:"&return&line 1 of it&return&return&"...and ends:"&return&line 2 of it with "false" or "true"if it is "true" then exit repeatend repeat----------------------------------------Final Check -----------------------if item 4 of enteredDate-item 1 of enteredDate>31622400 thenanswer "Dates entered reflected a four quarter period that was greater than 366 days."&return&return&"If you need to change the quarterly dates you'll need to try"&¬¨" again. Please be careful next time that the dates entered are for a period not over than 365 days."exit mouseUpend ifrepeat with i = 1 to 8convert item i of enteredDate to daterepeat until last char of item i of enteredDate = "/"delete last char of item i of enteredDateend repeatdelete last char of item i of enteredDateend repeatput item 1 of enteredDate &" - "& item 2 of enteredDate into line 1 of cd fld infodates2put item 3 of enteredDate &" - "& item 4 of enteredDate into line 2 of cd fld infodates2put item 5 of enteredDate &" - "& item 6 of enteredDate into line 1 of cd fld infodates4put item 7 of enteredDate &" - "& item 8 of enteredDate into line 2 of cd fld infodates4answer "This is the final check. In the window below you see the periods that delineate the four quarters for an unspecified year."&return&return&¬¨"If the dates are correct the program will be reset to reflect the quarter periods you have entered."&return&return&"Otherwise try again." with "try again" or "OK"if it is "try again" thensend mouseUp to bg button "reset quarterly dates"exit mouseUpend ifset the cursor to "busy"repeat with i = 1 to 8put "/92" after last char of item i of enteredDateconvert item i of enteredDate to secondsend repeatsubtract 1 from item 1 of enteredDatesubtract 1 from item 3 of enteredDatesubtract 1 from item 5 of enteredDatesubtract 1 from item 7 of enteredDateadd 1 to item 2 of enteredDateadd 1 to item 4 of enteredDateadd 1 to item 6 of enteredDateadd 1 to item 8 of enteredDateif item 4 of enteredDate = 2808604801 and item 5 of enteredDate = 2777068799 thenanswer "Uh oh... Who'da guessed it!"&return&return&"This is the only date this program isn't ready to handle (the fiscal year 6 months to the day ahead "&¬¨"of the calendar year). Please contact me if this is really necessary."&return&return&"(hmm...could you shift each quarter over by one day?) "send mouseUp to bg button "reset quarterly dates"exit mouseUpend ifput enteredDate into cd fld "quarterseconds"put empty into quartSecs --clear global variableput enteredDate into quartSecs --new parameters for global variablesend mouseUp to cd button "hide quarters"answer "The program has been reset."set cursor to 1end mouseUpon dateNotThereanswer "That answer was incomplete."&return&return&"If you need to stop at this time (or start all over) choose "&quote&"cancel"&quote&¬¨" and the default dates (valid in N.Y.S.) will be in effect."&return&return&"If you need to just re-do the fourth quarter entry, choose "&quote&"continue"&quote&"." with "cancel" or "continue"if it is "cancel" then exit to Hypercardend dateNotThereon dateTooShortanswer "A quarter really shouldn't be shorter then about 3 months."&return&return&"Check your response carefully before entering it." --12 weeksend dateTooShorton dateTooLonganswer "A quarter really shouldn't be longer than about 3 months."&return&return&"Your response was a bit longer than that." --14.87 weeksend dateTooLongon dateNoGoodanswer "Please enter the dates again."&return&return&"At least one of your responses was not a valid date."end dateNoGood</script>
  41.     </part>
  42.     <part>
  43.         <id>3</id>
  44.         <type>button</type>
  45.         <visible> <false /> </visible>
  46.         <reserved5> 0 </reserved5>
  47.         <reserved4> 0 </reserved4>
  48.         <reserved3> 0 </reserved3>
  49.         <reserved2> 0 </reserved2>
  50.         <reserved1> 0 </reserved1>
  51.         <enabled> <true /> </enabled>
  52.         <rect>
  53.             <left>338</left>
  54.             <top>296</top>
  55.             <right>357</right>
  56.             <bottom>327</bottom>
  57.         </rect>
  58.         <style>transparent</style>
  59.         <showName> <false /> </showName>
  60.         <highlight> <false /> </highlight>
  61.         <autoHighlight> <false /> </autoHighlight>
  62.         <sharedHighlight> <true /> </sharedHighlight>
  63.         <family>0</family>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>13625</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Chicago</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <name>fake</name>
  71.         <script></script>
  72.     </part>
  73.     <part>
  74.         <id>4</id>
  75.         <type>button</type>
  76.         <visible> <false /> </visible>
  77.         <reserved5> 0 </reserved5>
  78.         <reserved4> 0 </reserved4>
  79.         <reserved3> 0 </reserved3>
  80.         <reserved2> 0 </reserved2>
  81.         <reserved1> 0 </reserved1>
  82.         <enabled> <true /> </enabled>
  83.         <rect>
  84.             <left>338</left>
  85.             <top>302</top>
  86.             <right>357</right>
  87.             <bottom>333</bottom>
  88.         </rect>
  89.         <style>transparent</style>
  90.         <showName> <false /> </showName>
  91.         <highlight> <false /> </highlight>
  92.         <autoHighlight> <false /> </autoHighlight>
  93.         <sharedHighlight> <true /> </sharedHighlight>
  94.         <family>0</family>
  95.         <titleWidth>0</titleWidth>
  96.         <icon>13625</icon>
  97.         <textAlign>center</textAlign>
  98.         <font>Chicago</font>
  99.         <textSize>12</textSize>
  100.         <textStyle>plain</textStyle>
  101.         <name>fake2</name>
  102.         <script></script>
  103.     </part>
  104.     <part>
  105.         <id>5</id>
  106.         <type>field</type>
  107.         <visible> <false /> </visible>
  108.         <dontWrap> <true /> </dontWrap>
  109.         <dontSearch> <true /> </dontSearch>
  110.         <sharedText> <false /> </sharedText>
  111.         <fixedLineHeight> <true /> </fixedLineHeight>
  112.         <autoTab> <false /> </autoTab>
  113.         <lockText> <true /> </lockText>
  114.         <rect>
  115.             <left>495</left>
  116.             <top>330</top>
  117.             <right>512</right>
  118.             <bottom>342</bottom>
  119.         </rect>
  120.         <style>shadow</style>
  121.         <autoSelect> <false /> </autoSelect>
  122.         <showLines> <false /> </showLines>
  123.         <wideMargins> <false /> </wideMargins>
  124.         <multipleLines> <false /> </multipleLines>
  125.         <reservedFamily> 0 </reservedFamily>
  126.         <titleWidth>0</titleWidth>
  127.         <icon>0</icon>
  128.         <textAlign>left</textAlign>
  129.         <font>Geneva</font>
  130.         <textSize>12</textSize>
  131.         <textStyle>plain</textStyle>
  132.         <textHeight>16</textHeight>
  133.         <name>snd</name>
  134.         <script></script>
  135.     </part>
  136.     <part>
  137.         <id>6</id>
  138.         <type>field</type>
  139.         <visible> <false /> </visible>
  140.         <dontWrap> <true /> </dontWrap>
  141.         <dontSearch> <true /> </dontSearch>
  142.         <sharedText> <false /> </sharedText>
  143.         <fixedLineHeight> <false /> </fixedLineHeight>
  144.         <autoTab> <false /> </autoTab>
  145.         <lockText> <false /> </lockText>
  146.         <rect>
  147.             <left>500</left>
  148.             <top>29</top>
  149.             <right>512</right>
  150.             <bottom>41</bottom>
  151.         </rect>
  152.         <style>transparent</style>
  153.         <autoSelect> <false /> </autoSelect>
  154.         <showLines> <false /> </showLines>
  155.         <wideMargins> <false /> </wideMargins>
  156.         <multipleLines> <false /> </multipleLines>
  157.         <reservedFamily> 0 </reservedFamily>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>0</icon>
  160.         <textAlign>left</textAlign>
  161.         <font>Geneva</font>
  162.         <textSize>12</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <textHeight>16</textHeight>
  165.         <name>intro</name>
  166.         <script></script>
  167.     </part>
  168.     <name></name>
  169.     <script></script>
  170. </background>
  171.